<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="format-detection" content="telephone=yes"/>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<link rel="stylesheet" href="/phone/css/phone.css">
	<title>查看图片</title>
</head>
<body>
	<div class="cover" style="display: none;">
		<img src="" alt="">
		<span>进入相册 Enter ></span>
	</div>
	<div class="loading">
		<img src="" alt="">
	</div>
</body>
</html>
<script src="../script/jquery-1.11.3.min.js"></script>
<script src="/js/server.js"></script>
<script>
	$(function(){
		url = 'http://www.atphotos.cn/atphotos';
		var get_url = window.location.href.split("?")[1];
		get_url = get_url.split('=')[1];
		var sendData = {
			albumId:get_url
		}
		sendData = JSON.stringify(sendData);
		// 设置封面图片
		server.getData({postData:sendData},url+'/user/userAlbumInfo',function(res){
			$('.cover img').attr('src',res.data.cartoonPath);
			$('.cover span').css({
				'bottom':res.data.buttonPosition+"px"
			});
			$('.loading img').attr('src','http://www.atphotos.cn/'+res.data.gifPhoto);
			setTimeout(function(){
				$('.cover').show();
				$('.loading').hide();
			},1000)
		})
		
		document.getElementsByTagName('span')[0].onclick = function(){
			console.log("http://www.atphotos.cn/photo/ordinaryPhone.html?albumId="+get_url)
			window.location.href = "http://www.atphotos.cn/phone/ordinaryPhone.html?albumId="+get_url;
		}
	})
</script>